import { createRouter, createWebHistory } from "vue-router";
export const router = createRouter({
  history: createWebHistory(),
  routes: [
    {
      path: "/home",
      name: "home",
      component: () => import("@/view/index.vue"),
    },
    {
      path: "/login",
      name: "login",
      component: () => import("@/view/login.vue"),
    },
    {
      path:'/',
      redirect:'/login'
    }
  ],
});